import request from '../utils/request';

export async function getFoodTop(schoolId) {
  return request({
    url: `/food/getList/${schoolId}`,
    method: 'GET'
  })
}
export async function searchFood(data) {
    return request({
      url: `/food/getList`,
      method: 'GET',
      data
    })
  }

export async function getFoodByFilter(data) {
	return request({
	  url: `/food/getByFilter`,
	  method: 'GET',
	  data
	})
}

/**
 * 获取随机推荐的食物
 */
export async function getRandomFood() {
	return request({
	  url: `/food/getFoodList`,
	  method: 'GET'
	})
}

/**
 * 获取卡通图片
 */
export async function getCartoonPic() {
	return request({
	  url: `/food/getIndexList`,
	  method: 'GET'
	})
}
